// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
/*+----------MintUI--------------+*/
//引入mint-ui
import MintUI from 'mint-ui'
//引入全局样式
import '../static/css/global.css'
//引入CSS
import 'mint-ui/lib/style.css'
//使用
Vue.use(MintUI)

/*+----------Axios--------------+*/
import Axios from 'axios'
Vue.prototype.$axios = Axios
Axios.defaults.baseURL='http://mint.test/api/index/'
Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
